﻿using AccustomeAttributedll;
using ISaveReaddll;


namespace FinalTestMachine.Funs
{
    /// <summary>
    /// 通用项设置
    /// </summary>
    public class FunCommSelection : FunsSelectionHelperbase
    {
        public static readonly FunCommSelection Cur = new FunCommSelection();

        private FunCommSelection()
        {
            Read();
        }

        public static FunCommSelection CreateInstrance()
        {
            return Cur;
        }

        [SaveRemark]
        [FunctionSelectionRemark("工位测试超时报警", new string[] { "启用", "禁用" }, 0)]
        public bool IsSiteTestTimeOutAlarm = true;

        [SaveRemark]
        [FunctionSelectionRemark("启用安全光栅", new string[] { "启用", "禁用" }, 0)]
        public bool IsUseSafetyGrating = true;

        [SaveRemark]
        [FunctionSelectionRemark("启用安全门", new string[] { "启用", "禁用" }, 0)]
        public bool IsUseSafeDoor = true;

        [SaveRemark]
        [FunctionSelectionRemark("启用NG料盒", new string[] { "启用", "禁用" }, 0)]
        public bool IsUseNGBox = true;

        [SaveRemark]
        [FunctionSelectionRemark("上传MES", new string[] { "启用", "禁用" }, 0)]
        public bool IsUseMes = true;


        [SaveRemark]
        [FunctionSelectionRemark("启用打印机", new string[] { "启用", "禁用" }, 0)]
        public bool IsUsePrint = true;

        /// <summary>
        /// 点检
        /// </summary>
        [SaveRemark]
        public bool IsUseSpotCheck;

        [SaveRemark]
        [FunctionSelectionRemark("扫码枪", new string[] { "启用", "禁用" }, 0)]
        public bool IsUseScanCode = true;

        [SaveRemark]
        [FunctionSelectionRemark("SocketSN验证", new string[] { "启用", "禁用" }, 0)]
        public bool IsUseSocketSNCheck = true;

        [SaveRemark]
        [FunctionSelectionRemark("扫码成功后提示", new string[] { "蜂鸣器", "双启动灯" },0)]
        public bool EnableBuzzarTipsAfterScanSucess = true;

        [SaveRemark]
        [FunctionSelectionRemark("扫码后前缀检测",new string[] { "启用","禁用" },0)]
        public bool EnablePrefixCheck = true;
    }
}